package com.infoblazer.grailsmaps

class Zipcode {

  static constraints = {
  }

  static mapping = {
    table 'zipcode'
    version false
    id column: 'id', generator: 'increment'
    zip column: 'zip'
    latitude column: 'latitude'
   longitude column: 'longitude'
    city column: 'city'
  }


  static belongsTo = [city: City]

  int id
  String zip
  /*
  can't be Number - Serialization error
  even though it extends Number
   */
 BigDecimal  latitude
 BigDecimal longitude

}
